from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from ..constants.common_constants import PATH


class WebClient(object):

    def __init__(self):
        # Service的参数是驱动文件的路径
        service = Service(PATH)
        browser = webdriver.Chrome(service=service)
        self.browser = browser
